local function main (userOb, msgData)
    if msgData.key == "nickName" then
        local result = {}
        result.error = 0
        result.key = msgData.key
        result.context = userOb:get_nick_name()
        userOb:send_packet("MSGS2CGetPlayerInfo", result)
        return
    end

    if msgData.key == "playerId" then
        local result = {}
        result.error = 0
        result.key = msgData.key
        result.context = userOb:get_id()
        userOb:send_packet("MSGS2CGetPlayerInfo", result)
        return
    end
end

COMMAND_D:register_command("MSGC2SGetPlayerInfo",GameCmdType.NONE, main)
